/*
using MyGeneration/Template/NHibernate (c) by lujan99@usa.net
*/
using System;
using System.Collections;
using System.Collections.Generic;

namespace DokuzEylul.Sinav.Entities
{
	/// <summary>
	/// SinavDersKonu object for NHibernate mapped table 'SinavDersKonu'.
	/// </summary>
	[Serializable]
    public class SinavDersKonu : Unipa.Framework.Data.BaseDbEntity
	{
		#region Member Variables
		protected int m_sinavderskonuid;
		protected string m_icerik;
		protected string m_baslik;
		protected int? m_anaid;
		#endregion
		#region Constructors
			
		public SinavDersKonu() {}
					
		public SinavDersKonu(string icerik, string baslik, int? anaid) 
		{
			this.m_icerik= icerik;
			this.m_baslik= baslik;
			this.m_anaid= anaid;
		}

		#endregion
		#region Public Properties
		public  virtual int SinavDersKonuid
		{
			get { return m_sinavderskonuid; }
			set {m_sinavderskonuid= value; }
		}
		public  virtual string Icerik
		{
			get { return m_icerik; }
			set {m_icerik= value; }
		}
		public  virtual string Baslik
		{
			get { return m_baslik; }
			set {m_baslik= value; }
		}
		public  virtual int? Anaid
		{
			get { return m_anaid; }
			set {m_anaid= value; }
		}
		#endregion
		
		#region Equals And HashCode Overrides
		/// <summary>
		/// local implementation of Equals based on unique value members
		/// </summary>
		public override bool Equals( object obj )
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != this.GetType() ) ) return false;
			SinavDersKonu castObj = (SinavDersKonu)obj;
			return ( castObj != null ) &&
			this.m_sinavderskonuid == castObj.SinavDersKonuid;
		}
		/// <summary>
		/// local implementation of GetHashCode based on unique value members
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 57;
			hash = 27 * hash * m_sinavderskonuid.GetHashCode();
			return hash;
		}
		#endregion
		
	}
}
